﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="UpdatesGenerator.aspx.cs" Inherits="OpenWaves.ActivityFeed.Web.Tests.UpdatesGeneratorDetails" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <style type="text/css" media="all">
        
        .row {
            padding: 5px 0 10px 0;
        }
        
        .row label {
            width: 250px;
            display: inline-block;
            text-align: right;
            vertical-align: top;
            padding: 0 20px 0 0;
        }
        
        .row ul {
            width: auto;
            display: inline-block;
            margin: 0;
            padding: 0;
        }
        
        .row li label 
        {
            width: auto;
            text-align: initial;
            padding: 0;
        }
        
        .row li {
            display: inline-block;
            padding: 0 10px 0 0;
        }
        
        .row input[type=text] {
            width: 40px;
        }
        
    </style>
</asp:Content>

<asp:Content ContentPlaceHolderID="cphBody" runat="server">
    
    <div>
        <div class="row">
            <label>Number of updates:</label>
            <asp:TextBox runat="server" ID="txtNumberOfUpdates" Text="50"></asp:TextBox>
        </div>
        
        <div class="row">
            <label>Number comments for update:</label>
            <asp:TextBox runat="server" ID="txtNumberOfCommentsForUpdateMin" Text="0"></asp:TextBox>
            -
            <asp:TextBox runat="server" ID="txtNumberOfCommentsForUpdateMax" Text="4"></asp:TextBox>
        </div>
        
        <div class="row">
            <label>Number of sentences for update:</label>
            <asp:TextBox runat="server" ID="txtNumberOfSentencesForUpdateMin" Text="1"></asp:TextBox>
            -
            <asp:TextBox runat="server" ID="txtNumberOfSentencesForUpdateMax" Text="2"></asp:TextBox>
        </div>
                
        <div class="row">
            <label>Number of sentences for comment:</label>
            <asp:TextBox runat="server" ID="txtNumberOfSentencesForCommentMin" Text="1"></asp:TextBox>
            -
            <asp:TextBox runat="server" ID="txtNumberOfSentencesForCommentMax" Text="2"></asp:TextBox>
        </div>
                
        <div class="row">
            <label>Minutes dalay between updates:</label>
            <asp:TextBox runat="server" ID="txtMinutesDalayBetweenUpdatesMin" Text="1"></asp:TextBox>
            -
            <asp:TextBox runat="server" ID="txtMinutesDalayBetweenUpdatesMax" Text="20"></asp:TextBox>
        </div>
        
        <div class="row">
            <label>For users:</label>
            <asp:ListView ID="lstUsers" runat="server">
                <LayoutTemplate>
                    <ul>
                        <asp:PlaceHolder runat="server" ID="itemPlaceholder"/>
                    </ul>
                </LayoutTemplate>
                <ItemTemplate>
                    <li><asp:CheckBox ID="chkUser" runat="server" Text='<%#Eval("DisplayName") %>' Value='<%#Eval("Id") %>' Checked="true" /></li>
                </ItemTemplate>
            </asp:ListView>
        </div>
        
        <div class="row">
            <label>Topics:</label>
            <asp:TextBox ID="txtTopics" runat="server" TextMode="MultiLine" Width="150" Height="200"></asp:TextBox>
        </div>
    </div>

    <asp:Button runat="server" Text="Generate updates" OnClick="btnGenerateUpdates_OnClick"/>
</asp:Content>
